package org.mebusw.struts.davincicode;

import java.io.Serializable;

public class GameStatus implements Serializable {
	public static final int NOTSTARTED = 0;
	public static final int ONGOING = 1;
	public static final int GAMEOVER = 4;

	private int state;
	//TODO merge GameStatus with PlayerState
	
	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public String toString() {
		switch (state) {
		case NOTSTARTED:
			return "Not Started: ";
		case ONGOING:
			return "Waiting for ";
		case GAMEOVER:
			return "Winner: ";
		default:
			return "Unknown State";
		}
	}

}
